#include "process.h"

char style[S_NUM]={'.','#','>','-','+'};


void processon()
{
  int cnt=0;

  char bar[NUM];

  memset(bar,'\0',sizeof(bar));

  const char* lab="-+x";
    
  while(cnt<=100)
  {
    
    //printf("\033[46;31m[%-100s][%-3d%%][%c]\033[0m\r",bar,cnt,lab[cnt%3]);
 
    printf("\033[46;31m[%-100s][%-3d%%][%c]\033[0m\r",bar,cnt,lab[cnt%3]);
    
    fflush(stdout);
    
    bar[cnt++]=style[N];
    
    usleep(80000);
  }
  printf("\n");
    


}
